package com.iv.durian.cloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * Created by LiuLin on 2018/6/30 0030.
 */
@Data
@Builder
@ApiModel("资讯对象")
public class CoverageVO {
    @ApiModelProperty(value="资讯ID")
    private Integer id;
    @ApiModelProperty(value="资讯标题")
    private String title;
    @ApiModelProperty(value="资讯封面")
    private String image;
    @ApiModelProperty(value="类型 0-资讯 1-分享 2-新课 3-课程公告")
    private int type;
    @ApiModelProperty(value="0-非原创 1-原创")
    private int original;
    @ApiModelProperty(value="序号")
    private int sequence;
    @ApiModelProperty(value="资讯建立时间")
    @JsonProperty("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value="资讯最后更新时间")
    @JsonProperty("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
